<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="http://localhost/obj/movier/Template/default/css/inc.css" />
	<link rel="stylesheet" href="http://localhost/obj/movier/Template/default/css/public.css" />
	<!--[if IE 7]>
		<link rel="stylesheet" href="http://localhost/obj/movier/Template/default/css/ico-ie7.css">
	<![endif]-->
	<script type="text/javascript" src="http://localhost/obj/movier/Template/default/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="http://localhost/obj/movier/Template/default/js/public.js"></script>
	<script type="text/javascript" src="http://localhost/obj/movier/Template/default/js/slide.js"></script>
	<title>活动 - <?php echo $const['webname'];?></title>
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?></head>
<body>
	<!-- 顶部开始 -->
	<div class="bgblack">
		<div class="w1200 auto p5 bgblack">
			<a class="white-2 af mr20" href="http://localhost/obj/movier">老地方电影</a>
		</div>
	</div>
	<!-- 顶部结束 -->
	<!-- menu开始 -->
	<div class="h65 bgwhite rel zix2 fixMenu">
		<div class="w1200 auto h65 rel fix">
			<div class="logo t0 l0 w100 h65 l mr30"><img src="http://localhost/obj/movier/Template/default/img/logo.png" alt="" /></div>
			<ul class="l fm rel menu">
					<li class="l lh60 mr30" act="1"><a class="w50 tc dib f16 black" href="http://localhost/obj/movier">首页</a></li>
						<?php
		$re = M('category')->limit(5)->where('pid=0')->all();
		foreach ($re as $c) :
			if(16==$c['cid']) $c['act']='act="1"';
			$c['url']=U($c['url'],array('cid'=>$c['cid'],'nav'=>$c['cid']));
		?>
					<li class="l lh60 mr30" <?php echo $c['act'];?>><a class="w50 tc dib f16 black" href="<?php echo $c['url'];?>"><?php echo $c['cname'];?></a></li>
				<?php endforeach ;?>
				<span class="movebg dib w50 bgblue h4 abs b0 l0"></span>
			</ul>
			<div class="r abs t20 r10">
				<form action="<?php echo U('search/index');?>" method="get" class="dib ">
					<div class="dib bdc w200 rel">
						<input class="p5 pct80 bd0" type="text" name="keys" />
						<input type="submit" class="hand gray abs t3 r5 bd0 search" value="&emsp;&ensp;" />
					</div>
				</form>
				<p class="p5 dib fm ml10">
					<?php if($_SESSION['user']['uid']){?>
						<span class="f14 black mr10">欢迎您： <a class="gray a f14" href="<?php echo U('User/index');?>"><i class="icon-user mr3 gray"></i><?php echo $_SESSION['user']['email'];?> [ <?php echo $_SESSION['user']['nickname'];?> ]</a></span>
						<a class="f14 black" href="<?php echo U('User/out');?>"><i class="icon-signout mr3 gray"></i>退出</a>
						<?php if($_SESSION['user']['level'] > 0){?>
							| <a class="f14 blue5 tsblack" href="http://localhost/obj/movier?a=admin">后台管理</a>
							<?php if($_SESSION['user']['level'] == 9){?><span class="p2 pl5 pr5 rad50 white bgmaroon">超</span><?php }?>
						<?php }?>
					<?php  }else{ ?>
						<a class="f14 black mr10" href="<?php echo U('User/login');?>">登录</a>
						<a class="f14 black" href="<?php echo U('User/reg');?>">注册</a>
					<?php }?>
					
				</p>
			</div>
		</div>
	</div>
	<!-- menu结束 -->

	<!-- 活动slide开始 -->
	<div class="w1180 h350 auto mt20 fix of rel" id="s2">
		<div class="pic w900 h350 of bggreen l">
			<?php $hd["list"]["s"]["total"]=0;if(isset($slide) && !empty($slide)):$_id_s=0;$_index_s=0;$lasts=min(1000,count($slide));
$hd["list"]["s"]["first"]=true;
$hd["list"]["s"]["last"]=false;
$_total_s=ceil($lasts/1);$hd["list"]["s"]["total"]=$_total_s;
$_data_s = array_slice($slide,0,$lasts);
if(count($_data_s)==0):echo "";
else:
foreach($_data_s as $key=>$s):
if(($_id_s)%1==0):$_id_s++;else:$_id_s++;continue;endif;
$hd["list"]["s"]["index"]=++$_index_s;
if($_index_s>=$_total_s):$hd["list"]["s"]["last"]=true;endif;?>

				<a href="<?php echo U('Index/content',array('aid'=>$s['aid'],'cid'=>$_GET['cid'],'nav'=>16));?>" title="1" class="abs <?php if(!$hd['list']['s']['first']){?> dn<?php }?>"><img src="http://localhost/obj/movier/<?php echo $s['big'];?>" alt="" /></a>
			<?php $hd["list"]["s"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
		</div>
		<div class="w280 h350 bgblack l rel ls2 slideSub">
			<?php $i=0;?>
			<?php $hd["list"]["s"]["total"]=0;if(isset($slide) && !empty($slide)):$_id_s=0;$_index_s=0;$lasts=min(1000,count($slide));
$hd["list"]["s"]["first"]=true;
$hd["list"]["s"]["last"]=false;
$_total_s=ceil($lasts/1);$hd["list"]["s"]["total"]=$_total_s;
$_data_s = array_slice($slide,0,$lasts);
if(count($_data_s)==0):echo "";
else:
foreach($_data_s as $key=>$s):
if(($_id_s)%1==0):$_id_s++;else:$_id_s++;continue;endif;
$hd["list"]["s"]["index"]=++$_index_s;
if($_index_s>=$_total_s):$hd["list"]["s"]["last"]=true;endif;?>

				<?php $i++;?>
				<div class="p20 fm <?php if(!$hd['list']['s']['first']){?> dn<?php }?>">
					<h5 class="white f18 mt10"><?php echo $s['title'];?></h5>
					<p class="white f14 mt30"><?php echo $s['cont'];?></p>
					<a href="<?php echo U('Index/content',array('aid'=>$s['aid'],'cid'=>$_GET['cid'],'nav'=>16));?>" class="bgred1 dib p5 white f14 abs b10 l10 rad2">点击查看</a>
				</div>
			<?php $hd["list"]["s"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
		</div>
	</div>
	<!-- 活动slide结束 -->
	<!-- 内容开始 -->
	<div class="w1180 auto mt30 fix">
		<div class="rel">
			<a href="" class="bgblue1 white a1 p10 rad2 f14 mr5">全部活动</a>
			<!-- <a href="" class="black3 a1 p10 rad2 f14 mr5">开放日</a>
			<a href="" class="black3 a1 p10 rad2 f14 mr5">行业晚宴</a>
			<a href="" class="black3 a1 p10 rad2 f14 mr5">合作专区</a>
			<a href="" class="black3 a1 p10 rad2 f14 mr5">更多活动</a> -->
			<div class="abs r5 t-5 w150 h30 lh30 tl bgwhite allhuodong">
				<a href="" class=" pl10 black3 f14 db rel">全部 <span class="abs r5 t0 allhuodongcontent">▼</span></a>
				<div class="abs zix2 r0 t30 w150 bgwhite huodong dn">
					<a href="" class="pl10 black3 f14 a1 db lh30">报名中</a>
					<a href="" class="pl10 black3 f14 a1 db lh30">进行中</a>
					<a href="" class="pl10 black3 f14 a1 db lh30">已结束</a>
				</div>
			</div>
			
		</div>


		<?php $hd["list"]["a"]["total"]=0;if(isset($art) && !empty($art)):$_id_a=0;$_index_a=0;$lasta=min(1000,count($art));
$hd["list"]["a"]["first"]=true;
$hd["list"]["a"]["last"]=false;
$_total_a=ceil($lasta/1);$hd["list"]["a"]["total"]=$_total_a;
$_data_a = array_slice($art,0,$lasta);
if(count($_data_a)==0):echo "";
else:
foreach($_data_a as $key=>$a):
if(($_id_a)%1==0):$_id_a++;else:$_id_a++;continue;endif;
$hd["list"]["a"]["index"]=++$_index_a;
if($_index_a>=$_total_a):$hd["list"]["a"]["last"]=true;endif;?>

			<div class="dib w380 bgwhite mt20 mr10 rel of">
				<a href="<?php echo U('Index/content',array('aid'=>$a['aid'],'cid'=>$_GET['cid'],'nav'=>16));?>"><img width="380" height="200" src="http://localhost/obj/movier/<?php echo $a['medium'];?>" alt="" /></a>
				<p class="b fm p10"><a href="<?php echo U('Index/content',array('aid'=>$a['aid'],'cid'=>$_GET['cid'],'nav'=>16));?>" class="black f16"><?php echo $a['title'];?></a>
					<?php if($a['styleName']){?>
						<span class="<?php echo $a['styleName'];?>"><?php echo $a['tname'];?></span>
					<?php }?>
				</p>
				<p class="p10 gray fm f14"><i class="icon icontime"></i><?php echo $a['hdtime'];?></p>
				<p class="p10 gray fm f14"><i class="icon iconpos"></i><?php echo $a['hdplace'];?></p>
			</div>
		<?php $hd["list"]["a"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
		
		<div class="page mt20"><?php echo $page;?></div>
	</div>
	<!-- 内容结束 -->
	<!-- 底部开始 -->
	<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?>	<!-- 底部开始 -->
	<div class="bgblack h100 white-2 mt20">
		<!-- <div class="fs tc pt10">
			<a href="" class="dib p5 white-2">合作推广</a>
			<a href="" class="dib p5 white-2">联系我们</a>
			<a href="" class="dib p5 white-2">加入我们</a>
		</div> -->
		<div class="pt20">
			<p class="tc p5"><?php echo $const['bottom1'];?></p>
			<p class="tc p5"><?php echo $const['bottom2'];?></p>
		</div>
	</div>
	<!-- 底部结束 -->
</body>
</html>
	<!-- 底部结束 -->
